package cn.ruituo.adv5.exe;

import java.io.File;
import java.util.LinkedList;

public class TEstSTr {
    //    public static void main(String[] args) {
//        String str="小狗小猫最可爱，小狗更可爱";
//        String s2=str.replace("小狗","dog");
//        System.out.println(s2);
//    }

    public static void main(String[] args) {
        LinkedList<File> files = new LinkedList<>();
        File f = new File("E:\\temp");
        files.add(f);
        while(files.size()>0){
            File t=files.removeFirst();
            System.out.println(t);
            if(!t.canRead())
                continue;
            if(t.isDirectory()==false)
                continue;
            File[]fr=t.listFiles();
            for(File f1:fr)
                files.add(f1);
        }
    }
}
